﻿// Decompiled with JetBrains decompiler
// Type: SandBox.HealMainHeroCheat
// Assembly: SandBox, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 75BA0B61-63FF-423A-8603-0A2974B621BB
// Assembly location: D:\steam\steamapps\common\Mount & Blade II Bannerlord\Modules\SandBox\bin\Win64_Shipping_Client\SandBox.dll

using TaleWorlds.Localization;
using TaleWorlds.MountAndBlade;

#nullable disable
namespace SandBox
{
  public class HealMainHeroCheat : GameplayCheatItem
  {
    public override void ExecuteCheat()
    {
      if (Agent.Main == null)
        return;
      Agent.Main.Health = Agent.Main.HealthLimit;
    }

    public override TextObject GetName() => new TextObject("{=PsmnVIcb}Heal Main Hero");
  }
}
